<template>
  <div class="box">
    <div class="head-fixed">
      <div class="head">
        <div class="head-div">
          <img src="../assets/zjt2.png" alt="" class="back" @click="back()" />
        </div>
        <div class="head-search">我的消息</div>
      </div>
    </div>
    <div class="content">
        <div class="block" @click="go('/mianshi')">
            <span class="label">系统消息：</span>
            <span class="text">xx公司向你发来了面试邀请，点击查看</span>
        </div>
        <div class="block" @click="go('/feedback')">
            <span class="label">系统消息：</span>
            <span class="text">你有一条新的反馈消息，点击查看</span>
        </div>
        <div class="block" @click="go('/deliver')">
            <span class="label">系统消息：</span>
            <span class="text">张三向贵公司的java开发职位投递了简历，点击查看</span>
        </div>
        <div class="block">
            <span class="label">系统消息：</span>
            <span class="text">营业执照认证未通过</span>
        </div>
        <div class="block">
            <span class="label">系统消息：</span>
            <span class="text">个人身份认证未通过</span>
        </div>
        <div class="block">
            <span class="label">系统消息：</span>
            <span class="text">充值成功，充值积分为10积分，已到账</span>
        </div>
        <div class="block">
            <span class="label">系统消息：</span>
            <span class="text">积分不足，竞价已暂停，请及时充值</span>
        </div>
    </div>
  </div>
</template>
<script>
export default {
  inject: ["reload"],
  name: "news",
  components: {},
  created() {
    // created 在模板渲染成html前调用，即通常初始化某些属性值，然后再渲染成视图
  },
  mounted() {
    // mounted在模板渲染成html后调用，通常是初始化页面完成后，再对html的dom节点进行一些需要的操作
  },
  // data() 为变量赋值等
  data() {
    return {
      // status为用户身份，0是求职者，1是招聘者
      status: localStorage.status,

    };
  },
  // methods 编写js函数
  methods: {

    back() {
      this.$router.go(-1); //返回上一层
    },
    go(r) {
      this.$router.push(r);
    }
  },
};
</script>
<style scoped>
html,
body,
.tac,
.box,
.tab-left,
.tab-left .el-menu {
  height: 100%;
}

.box {
  width: 100%;
  background: #fff;
}
.head-fixed {
  width: 100%;
  height: 43px;
  position: fixed;
  z-index: 999;
}
.head {
  background: #3e63a8;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.back {
  width: 14px;
  height: 14px;
}
.head div img {
  width: 20px;
  height: 20px;
}
.head-search {
  box-sizing: border-box;
  flex: 1;
  text-align: center;
  font-size: 14px;
}
.content {
  position: relative;
  top: 43px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px 20px 20px;
}
.content div{
    font-size: 14px;
}
.block {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
  margin-top: 10px;
  /* height: 90px; */
  display: flex;
  border-radius: 10px;
  box-shadow: 2px 2px 5px #c7c7c7;
}
.label{
    width: 75px;
}
.text{
    flex:1
}
</style>